<?php

   ini_set('display_errors', 'On');
   
session_start();

include_once( 'config.php' );
include_once( 'saetv2.ex.class.php' );
/*
$o = new SaeTOAuthV2( WB_AKEY , WB_SKEY );
if(!empty($_SESSION['token']['access_token'])){
	$code_url = Yii::app()->createUrl('/site/index');
}else{
	$code_url = $o->getAuthorizeURL( WB_CALLBACK_URL );
	
}
*/


$yii=dirname(__FILE__).'/../Yiiframework/yii.php';
$config=dirname(__FILE__).'/protected/config/main.php';
defined('YII_DEBUG') or define('YII_DEBUG',true);
require_once($yii);
Yii::createWebApplication($config)->run();



?>